public class DateTools {
    public static void main(String[] args) {

    }
    public static boolean isLeapYear(int year)
    {
        return year%4==0&&year%100!=0||year%400==0;
    }
    public static int sumDays(int year)
    {
        return isLeapYear(year)?366:365;
    }
}
